﻿using System;
using ZHDJ.Data.Models.Center;
using ZHDJ.PersonalCenter.BLL;

namespace ZHDJ.PersonalCenter.Module.RelationshipTransfer
{
    public partial class RelationshipTransferHistory : System.Web.UI.UserControl
    {
        public string mode
        {
            get; set;
        }
        public string LoginID
        {
            get; set;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(mode))
            {
                if (!IsPostBack)
                {
                    this.Visible = true;
                    LoadHistory();
                }
            }
            else
            {
                this.Visible = false;
            }
        }

        public void LoadHistory()
        {
            this.RepeaterHistory.DataSource = PartyRelationshipTransfer.GetApplyAll(LoginID);
            this.RepeaterHistory.DataBind();
        }
    }
}